using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class PassengerItem : MonoBehaviour
{
    public Image icon;
    public Text nameText;
    internal void Init(Passenger passenger)
    {
        icon.sprite = Resources.Load<Sprite>(passenger.icon);
        nameText.text = passenger.name;
    }

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
